﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ACrtUser.aspx.cs" Inherits="RAgency.Admin.ACrtUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:HyperLink ID="BackToSelect" runat="server" NavigateUrl="~/Admin/APage.aspx"
            Text="Вернуться к функциям" />
    </p>
    <h2>
        Создание пользователя:
    </h2>
    <table border="0">
        <tr>
            <td>
                Логин:
            </td>
            <td>
                <asp:TextBox runat="server" ID="login" />
                <asp:RequiredFieldValidator ID="LoginValid" ControlToValidate="login" Display="Static"
                    ErrorMessage="Заполните поле!" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                Пароль:
            </td>
            <td>
                <asp:TextBox runat="server" ID="password" TextMode="Password" />
                <asp:RequiredFieldValidator ID="PassValid" ControlToValidate="password" Display="Static"
                    ErrorMessage="Заполните поле!" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                E-mail:
            </td>
            <td>
                <asp:TextBox runat="server" ID="email" />
                <asp:RegularExpressionValidator ID="EmailValidReg" runat="server" ControlToValidate="email"
                    Display="Dynamic" ErrorMessage="Некорректный формат e-mail!" ValidationExpression="[\w\d-\.]+@([\w\d-]+(\.[\w\-]+)+)" />
                <asp:RequiredFieldValidator ID="EmailValid" ControlToValidate="email" Display="Static"
                    ErrorMessage="Заполните поле!" runat="server" />
            </td>
        </tr>
    </table>
    <asp:Button runat="server" ID="AddButton" Text="Добавить" OnClick="AddButton_Click" />
    &nbsp;
    <asp:Label ID="ErrLabel" Text="" runat="server" />
</asp:Content>
